<% @page_title = "Colleges &amp; Disciplines" %>
<% @blurb = discipline_blurb %>
<%= render :partial => 'sidebar' %>

<div class="column first span-16 append-1 last">

  <h3><%= @page_title %></h3>

  <table class="debug">
    <tr>
      <th>Colleges</th>
      <th>Disciplines</th>
    </tr>
    <% @colleges.each do |c| %>
      <tr>
        <th>
          <h4><%= link_to h(c.name), college_discipline_path(c) %></h4>
        </th>

        <td>
          <ul>
            <% if c.disciplines.count > 0 %>
              <% c.disciplines.each do |d| %>
                <li><%= link_to_unless_current h(d.name), discipline_path(d) %></li>
              <% end %>
            <% else %>
              <li>No disciplines created yet. <%= link_to "Be the first &#187;", new_discipline_path(:college_id => c.id) %></li>
            <% end %>
          </ul>
        </td>
      </tr>
    <% end %>
  </table>
</div>
